package it.unina.lab.model;

import java.util.ArrayList;
import java.util.List;


public class TransitionHL {

	
	/** ESEMPIO DI FUSION MODULE 
	 * {par_or_s, speech_play, rfid_play, par_or_e} 
	 * **/
	
	
	public static final String PAR_OR_START = "par_or_s"; 		//1
	public static final String PAR_OR_END = "par_or_e";   		//2
	public static final String SEQ_AND_START = "seq_and_s"; 		//3
	public static final String SEQ_AND_END = "seq_and_e";			//4
	
	public static final int PAR_OR_START_INT = 1;
	public static final int PAR_OR_END_INT = 2;
	public static final int SEQ_AND_START_INT = 3;
	public static final int SEQ_AND_END_INT = 4;
	
	
	public static int convertFusionModule(String fm){
		if(fm.equalsIgnoreCase(PAR_OR_START))
			return PAR_OR_START_INT;
		else if(fm.equalsIgnoreCase(PAR_OR_END))
			return PAR_OR_END_INT;
		else if(fm.equalsIgnoreCase(SEQ_AND_START))
			return SEQ_AND_START_INT;
		else if(fm.equalsIgnoreCase(SEQ_AND_END))
			return SEQ_AND_END_INT;
		
		return 0;
	}
	
	
	
	
	
	private List<String> fusionModule = null;
	private ResultHL result = null;
	
	
	public TransitionHL(){
		fusionModule = new ArrayList<String>();
		result = new ResultHL();
	}
	
	
	
	public List<String> getFusionModule() {
		return fusionModule;
	}
	public void setFusionModule(List<String> fusionModule) {
		this.fusionModule = fusionModule;
	}
	
	public ResultHL getResult() {
		return result;
	}
	public void setResult(ResultHL result) {
		this.result = result;
	}
	
	
	public String toString(){
		return fusionModule.toString() + "\n" + result.toString();
	}
	
	
	
	
}
